package de.jonasjelten.jcalc.exception;

/**
 *
 * @author michael
 */
public class JNumberException extends JSyntaxException {

    /**
     * Creates a new instance of <code>JNumberException</code> without detail message.
     */
    public JNumberException() {
         super("Syntax error in Numbers!");
    }


    /**
     * Constructs an instance of <code>JNumberException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public JNumberException(String msg) {
        super(msg);
    }

    @Override
    public String getLocalizedMessage() {
        return "Keine Zahl eingegeben oder eingegebene Zahl fehlerhaft!";
    }
}
